package com.wei.common.service;

import com.wei.common.entity.Storage;

/**
 * @author weichuanyuan
 * @version 1.0
 * @date 2021/8/29 9:30
 */
public interface StorageService {
    /**
     * 扣库存
     * @param storage
     * @return
     */
    boolean reduceStorage(Storage storage);

    /**
     * 有异常的扣库存
     * @param storage
     * @return
     */
    boolean reduceStorageException(Storage storage);
}
